/**
 * BST解析
 */
public class BST {

    public static void Jiexi(String  shuju) {

        String MAC = shuju.substring(0, 8);
        System.out.println("MAC为:" + MAC);
        String CTRL = shuju.substring(8, 12);
        System.out.println("MAC 控制域+LLC 控制域为:" + CTRL);
        String FRAMEHEAD = shuju.substring(12, 14);
        System.out.println("段字头为:" + FRAMEHEAD);

        //  T-APDU&Dptionsl:C0
//                BeaconID:03000105
//                Unix Time:4838350E
//                Profile:00
        String  Dptionsl = shuju.substring(14, 16);
        System.out.println("T-APDU&Dptionsl为:" + Dptionsl);
        String  BeaconID = shuju.substring(16, 24);
        System.out.println("BeaconID为:" + BeaconID);

        String  UnixTime = shuju.substring(24, 32);
        System.out.println("UnixTime为:" + UnixTime);
        String  Profile = shuju.substring(32, 34);
        //AppListHum:01
//                Ai d:41
//                Di d:

        System.out.println("Profile为:" + Profile);
        String  AppListHum = shuju.substring(34, 36);
        System.out.println("AppListHum为:" + AppListHum);
        String  Aid = shuju.substring(36, 38);
        System.out.println("Aid为:" + Aid);
//                String  Did = shuju.substring(38, 40);
//                System.out.println("Did为:" + Did);
//                iccTransMode:83
//                Container:29
        String  iccTransMode = shuju.substring(38, 40);
        System.out.println("iccTransMode为:" + iccTransMode);

        String  Container = shuju.substring(40, 42);
        System.out.println("Container为:" + Container);

//                ITS 0ption:A0
//                sysLen:1A
        String  ITS0ption = shuju.substring(42, 44);
        System.out.println("ITS0ption为:" + ITS0ption);
        String  sysLen = shuju.substring(44, 46);
        System.out.println("sysLen为:" + sysLen);
//
//                0ffset02:00
//                Len02:04

        String offset02  = shuju.substring(46, 48);
        System.out.println("0ffset02为:" + offset02);

        String Len02  = shuju.substring(48, 50);
        System.out.println("Len02为:" + Len02);


//                0ffset12:
//                Len12:

//                String offset12  = shuju.substring(48, 50);
//                System.out.println("offset12为:" + offset12);
//
//                String Len12  = shuju.substring(50, 52);
//                System.out.println("Len12为:" + Len12);

//                0ffset15:00
//                Len15:2B
        String offset15  = shuju.substring(50, 52);
        System.out.println("offset15为:" + offset15);

        String Len15  = shuju.substring(52, 54);
        System.out.println("Len15为:" + Len15);
        //                Offset19:
//                                 Len19:
        //                ProfileList:00
        String ProfileList  = shuju.substring(54, 56);
        System.out.println("ProfileList为:" + ProfileList);
    }
}
